package com.ys.entity.base;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TB_UserTaxManageItem", catalog="Id")
public class TbUserTaxManageItem extends BaseEntity<TbUserTaxManageItem> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="TaxManageId", nameJava="taxManageId", typeDataBase="bigint")
	private Long taxManageId;
	@YsField(nameDataBase="UserId", nameJava="userId", typeDataBase="varchar")
	private String userId;
	@YsField(nameDataBase="SpecialDeductNum", nameJava="specialDeductNum", typeDataBase="decimal")
	private BigDecimal specialDeductNum;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TbUserTaxManageItem setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getTaxManageId() {
		return taxManageId;
	}
	public TbUserTaxManageItem setTaxManageId(Long taxManageId) {
		this.taxManageId = taxManageId;
		return this;
	}
	public String getUserId() {
		return userId;
	}
	public TbUserTaxManageItem setUserId(String userId) {
		this.userId = userId;
		return this;
	}
	public BigDecimal getSpecialDeductNum() {
		return specialDeductNum;
	}
	public TbUserTaxManageItem setSpecialDeductNum(BigDecimal specialDeductNum) {
		this.specialDeductNum = specialDeductNum;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TbUserTaxManageItem setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TbUserTaxManageItem setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TbUserTaxManageItem setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TbUserTaxManageItem tbUserTaxManageItem(
		Long taxManageId,
		String userId,
		BigDecimal specialDeductNum,
		Integer status
			) {
		TbUserTaxManageItem entity = new TbUserTaxManageItem();
		entity.setTaxManageId(taxManageId);
		entity.setUserId(userId);
		entity.setSpecialDeductNum(specialDeductNum);
		entity.setStatus(status);
		return entity;
	}
}